package cn.exrick.xboot.common.utils;

import lombok.Data;

@Data
public class CustomPage {
    private Integer pageNumber;
    private Integer pageSize;
    private Integer totalRows;
    private Integer totalPages;
    private Object resultData;

    public Integer getFirstRow() {
        Integer ff=  pageSize*(pageNumber-1);
        return ff;
    }

    public Integer getLastRow() {
        Integer ll=  pageSize;
        return ll;
    }
}
